package com.ccb.sc.common.modules.groupon.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @author ken
 * @since 2020-09-15
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@Getter
public enum GrouponStatus implements IEnum<Integer> {

    /**
     * 团购状态
     */
    GROUPING(0, "拼团中"),


    FAILURE(1, "拼团失败"),


    FINISHED(2, "已结束"),


    ;

    private int value;
    private String desc;

    GrouponStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
